'use strict';

function calculate_elements_sum(collection, element) {
  let t;
  for(let i=0;i<collection.length;i++)
    {
      if(collection[i]==element)
        t=i;
    }
  return t;
}

module.exports = calculate_elements_sum;
